<div id="sidebarwrap">
    <div id="sidebar">
        <div id="logo" class="animate animatecontent fadein">
            <a href="index.php" alt="<?php bloginfo('name') ?>">
                <img src="<?php bloginfo('template_directory') ?>/images/logo.jpg" />
            </a>
        </div>
        <div id="navigation" class="animatecontent">
            <?php echo preg_replace('@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i', '<div$1><a$2>$3</a></div>', wp_list_categories('orderby=slug&hide_empty=0&exclude=1&title_li=&echo=0')); ?>
        </div>
    </div>
</div>

